<?php

function getRedis() {
   $db = $redis = new \Redis();
    $redis->connect('140.143.231.177', 6379);
    $redis->auth('123456');
    return $db;
}